package vivace.view;

import javax.swing.*;
import lib.Texter.*;

public class VToggleButton extends JToggleButton implements CText {


	private static final long serialVersionUID = -7888810297716488995L;
	private String toolTipKey;
	
	
	/**
	 * VToogleButton constructor
	 * These will be used in the appBar
	 */
	public VToggleButton(ImageIcon imageIcon, String toolTipKey ){
		super(imageIcon);
		lib.Texter.Text.registrera(this);
		this.toolTipKey = toolTipKey;
		setToolTipText(Text.getText( toolTipKey ));
	}
	
	public void setCFont() {
		
	}

	public void setToolTipKey( String toolTipKey ){
		this.toolTipKey = toolTipKey;
		setToolTipText(Text.getText( toolTipKey ));
	}

	/*
	 * Set the camp text of a tooltip
	 */
	public void setCText() {
		setToolTipText(Text.getText( toolTipKey ));
	}

	
}
